
export function columnsScreen (menuId) {
  let columns = [];
  switch (menuId) {
    //有分页
    case 311:
      columns = [{ name: "发货方名称", prop: "name", align: "left", sortable: true },
      { name: "收入（元）", prop: "amountIncome", rmsData: "cost", sortable: true },
      { name: "运单数（单）", prop: "totalWaybill", rmsData: "total" },
      { name: "总重量（公斤）", prop: "totalWeight", rmsData: "total" },
      { name: "总体积（方）", prop: "totalVolume", rmsData: "total" }]
      break
    case 313:
      columns = [{ name: "发货方名称", prop: "name", align: "left", sortable: true },
      { name: "1月（元）", prop: "one" },
      { name: "2月（元）", prop: "two" },
      { name: "3月（元）", prop: "three" },
      { name: "4月（元）", prop: "four" },
      { name: "5月（元）", prop: "five" },
      { name: "6月（元）", prop: "six" },
      { name: "7月（元）", prop: "seven" },
      { name: "8月（元）", prop: "eight" },
      { name: "9月（元）", prop: "nine" },
      { name: "10月（元）", prop: "ten" },
      { name: "11月（元）", prop: "eleven" },
      { name: "12月（元）", prop: "twelve" }]
      break
    case 314:
      columns = [{ name: "发货方名称", prop: "name", align: "left" },
      { name: "运单数（单）", prop: "totalWaybill", rmsData: "total" },
      { name: "已签收数（单）", prop: "countSign", rmsData: "sign", sortable: true },
      { name: "签收率（%）", prop: "signRate", rmsData: "rate", sortable: true }]
      break
    case 315:
      columns = [{ name: "发货方名称", prop: "name", align: "left" },
      { name: "运单数（单）", prop: "totalWaybill", rmsData: "total" },
      { name: "已回单数（单）", prop: "countReceipt", rmsData: "sign", sortable: true },
      { name: "回单率（%）", prop: "receiptRate", rmsData: "rate", sortable: true }]
      break
    case 317:
      columns = [{ name: "发货方名称", prop: "name", align: "left" },
      { name: "绑定设备运单数（单）", prop: "countUseDevice", rmsData: "device" },
      { name: "已签收数（单）", prop: "countDeviceSign", rmsData: "sign" },
      { name: "8小时内签收率（%）", prop: "countLess8Rate", rmsData: "rate" },
      { name: "8-24小时内签收率（%）", prop: "countLess24Rate", rmsData: "rate" },
      { name: "24小时以上签收率（%）", prop: "countmore24Rate", rmsData: "rate", sortable: true }]
      break
    case 318:
      columns = [{ name: "发货方名称", prop: "name", align: "left", sortable: true  },
      { name: "提货准时率", prop: "countPickOntimeRate", rmsData: "rate", tooltip: true },
      { name: "提货超时率", prop: "countPickTimeOutRate", rmsData: "rate", tooltip: true, check:true },
      { name: "送货准时率", prop: "countDeliverOntimeRate", rmsData: "rate", tooltip: true },
      { name: "送货超时率", prop: "countDeliverTimeOutRate", rmsData: "rate", tooltip: true, check:true },
      { name: "签收准时率", prop: "countSignOntimeRate", rmsData: "rate", tooltip: true },
      { name: "签收超时率", prop: "countSignTimeOutRate", rmsData: "rate", tooltip: true, check:true },
      { name: "货物完好率", prop: "countGoodsIntactRate", rmsData: "rate", tooltip: true },
      { name: "货物异常率", prop: "countExceptionRate", rmsData: "rate", tooltip: true, check:true },
      { name: "回单准时率", prop: "countReceiptOntimeRate", rmsData: "rate", tooltip: true},
      { name: "回单超时率", prop: "countReceiptTimeoutRate", rmsData: "rate", tooltip: true, check:true},
      { name: "服务满意度", prop: "countScoreRate", rmsData: "rate"}]
      break
    case 368:
      columns = [{ name: "发货方名称", prop: "name", align: "left", sortable: true },
      { name: "已到达签收（单）", prop: "arrivalSign" },
      { name: "未到达签收（单）", prop: "noArrivalSign", sortable: true }]
      break
    case 367:
      columns = [{ name: "承运方名称", prop: "name", align: "left", sortable: true },
      { name: "已到达签收（单）", prop: "arrivalSign" },
      { name: "未到达签收（单）", prop: "noArrivalSign", sortable: true }]
      break
    case 321:
      columns = [{ name: "承运方名称", prop: "name", width: "140", align: "left", sortable: true },
      { name: "成本（元）", prop: "amountCost", width: "160", rmsData: "cost", sortable: true },
      { name: "零担费（元）", prop: "feeDivide", width: "160", rmsData: "fee" },
      { name: "整车费（元）", prop: "feeWhole", width: "160", rmsData: "fee" },
      { name: "提货费（元）", prop: "feePick", width: "110", rmsData: "fee" },
      { name: "送货费（元）", prop: "feeDeliver", width: "110", rmsData: "fee" },
      { name: "装货费（元）", prop: "feeLoad", width: "110", rmsData: "fee" },
      { name: "卸货费（元）", prop: "feeUnload", width: "110", rmsData: "fee" },
      { name: "补充费用（元）", prop: "feeSupplement", width: "140", rmsData: "fee" },
      { name: "最低运费（元）", prop: "feeMin", width: "140", rmsData: "fee" },
      { name: "保险费（元）", prop: "feeInsure", width: "110", rmsData: "fee" },
      { name: "税费（元）", prop: "feeTax", minWidth: "95px", rmsData: "fee" },
      { name: "运单数（单）", prop: "totalWaybill", width: "110", rmsData: "total" },
      { name: "总重量（公斤）", prop: "totalWeight", width: "180", rmsData: "total" },
      { name: "总体积（方）", prop: "totalVolume", width: "180", rmsData: "total" }]
      break
    case 322:
      columns = [{ name: "收货方名称", prop: "name", width: "140", align: "left", sortable: true },
      { name: "成本（元）", prop: "amountCost", width: "160", sortable: true },
      { name: "零担费（元）", prop: "feeDivide", width: "160" },
      { name: "整车费（元）", prop: "feeWhole", width: "160" },
      { name: "提货费（元）", prop: "feePick", width: "130" },
      { name: "送货费（元）", prop: "feeDeliver", width: "130" },
      { name: "装货费（元）", prop: "feeLoad", width: "130" },
      { name: "卸货费（元）", prop: "feeUnload", width: "130" },
      { name: "补充费用（元）", prop: "feeSupplement", width: "140" },
      { name: "最低运费（元）", prop: "feeMin", width: "140" },
      { name: "保险费（元）", prop: "feeInsure", width: "130" },
      { name: "税费（元）", prop: "feeTax", minWidth: "95px" },
      { name: "运单数（单）", prop: "totalWaybill", width: "130" },
      { name: "总重量（公斤）", prop: "totalWeight", width: "180" },
      { name: "总体积（方）", prop: "totalVolume", width: "180" }]
      break
    case 327:
      columns = [{ name: "承运方名称", prop: "name", align: "left", sortable: true },
      { name: "1月（元）", prop: "one" },
      { name: "2月（元）", prop: "two" },
      { name: "3月（元）", prop: "three" },
      { name: "4月（元）", prop: "four" },
      { name: "5月（元）", prop: "five" },
      { name: "6月（元）", prop: "six" },
      { name: "7月（元）", prop: "seven" },
      { name: "8月（元）", prop: "eight" },
      { name: "9月（元）", prop: "nine" },
      { name: "10月（元）", prop: "ten" },
      { name: "11月（元）", prop: "eleven" },
      { name: "12月（元）", prop: "twelve" }]
      break
    case 328:
      columns = [{ name: "承运方名称", prop: "name", align: "left" },
      { name: "运单数（单）", prop: "totalWaybill", rmsData: "total" },
      { name: "已签收数（单）", prop: "countSign", rmsData: "sign", sortable: true },
      { name: "签收率（%）", prop: "signRate", rmsData: "rate", sortable: true }]
      break
    case 329:
      columns = [{ name: "承运方名称", prop: "name", align: "left" },
      { name: "运单数（单）", prop: "totalWaybill", rmsData: "total" },
      { name: "已回单数（单）", prop: "countReceipt", rmsData: "sign", sortable: true },
      { name: "回单率（%）", prop: "receiptRate", rmsData: "rate", sortable: true }]
      break
    case 331:
      columns = [{ name: "承运方名称", prop: "name", align: "left" },
      { name: "绑定设备运单数（单）", prop: "countUseDevice", rmsData: "device" },
      { name: "已签收数（单）", prop: "countDeviceSign", rmsData: "sign" },
      { name: "8小时内签收率（%）", prop: "countLess8Rate", rmsData: "rate" },
      { name: "8-24小时内签收率（%）", prop: "countLess24Rate", rmsData: "rate" },
      { name: "24小时以上签收率（%）", prop: "countmore24Rate", rmsData: "rate", sortable: true }]
      break
    case 332:
      columns = [{ name: "承运方名称", prop: "name", align: "left", sortable: true  },
      { name: "提货准时率", prop: "countPickOntimeRate", rmsData: "rate", tooltip: true },
      { name: "提货超时率", prop: "countPickTimeOutRate", rmsData: "rate", tooltip: true, check:true },
      { name: "送货准时率", prop: "countDeliverOntimeRate", rmsData: "rate", tooltip: true },
      { name: "送货超时率", prop: "countDeliverTimeOutRate", rmsData: "rate", tooltip: true, check:true },
      { name: "签收准时率", prop: "countSignOntimeRate", rmsData: "rate", tooltip: true },
      { name: "签收超时率", prop: "countSignTimeOutRate", rmsData: "rate", tooltip: true, check:true },
      { name: "货物完好率", prop: "countGoodsIntactRate", rmsData: "rate", tooltip: true },
      { name: "货物异常率", prop: "countExceptionRate", rmsData: "rate", tooltip: true, check:true },
      { name: "回单准时率", prop: "countReceiptOntimeRate", rmsData: "rate", tooltip: true},
      { name: "回单超时率", prop: "countReceiptTimeoutRate", rmsData: "rate", tooltip: true, check:true},
      { name: "服务满意度", prop: "countScoreRate", rmsData: "rate"}]
      break
    case 333:
      columns = [{ name: "合同编号", prop: "contractNo", minWidth: "150", align: "left", sortable: true },
      { name: "发货时间", prop: "fromTime", minWidth: "120", align: "left", sortable: true },
      { name: "出发城市", prop: "fromCity", minWidth: "100", align: "left" },
      { name: "到达省", prop: "toProvince", minWidth: "100", align: "left" },
      { name: "到达城市", prop: "toCity", minWidth: "100", align: "left" },
      { name: "到达区县", prop: "toDistrict", minWidth: "100", align: "left" },
      { name: "发货方名称", prop: "customerName", minWidth: "100", align: "left" },
      { name: "收货方名称", prop: "consigneeName", minWidth: "100", align: "left" },
      { name: "重量（公斤）", prop: "totalWeight", width: "180" },
      { name: "体积（方）", prop: "totalVolume", width: "180" },
      { name: "车型", prop: "carType", width: "80", align: "left" },
      { name: "车长", prop: "carCaptain", width: "80", align: "left" },
      { name: "运输方式", prop: "shipModeName", width: "80", align: "left" },
      { name: "运输模式", prop: "transportMode", width: "80", align: "left" },
      { name: "收入（元）", prop: "amountIncome", rmsData: "cost", width: "180" },
      { name: "成本（元）", prop: "amountCost", rmsData: "cost", width: "180" },
      { name: "成本率（%）", prop: "amountCostRate", rmsData: "rate", width: "120" },
      { name: "利润（元）", prop: "profits", width: "100" },
      { name: "利润率（%）", prop: "profitsRate", rmsData: "rate", width: "120" },
      { name: "备注", prop: "desc", minWidth: "120", align: "left" }]
      break
    case 334:
      columns = [{ name: "合同编号", prop: "contractNo", minWidth: "150", align: "left", sortable: true },
      { name: "发货时间", prop: "fromTime", minWidth: "120", align: "left", sortable: true },
      { name: "出发城市", prop: "fromCity", minWidth: "100", align: "left" },
      { name: "到达省", prop: "toProvince", minWidth: "100", align: "left" },
      { name: "到达城市", prop: "toCity", minWidth: "100", align: "left" },
      { name: "到达区县", prop: "toDistrict", minWidth: "100", align: "left" },
      { name: "发货方名称", prop: "customerName", minWidth: "100", align: "left" },
      { name: "收货方名称", prop: "consigneeName", minWidth: "100", align: "left" },
      { name: "重量（公斤）", prop: "totalWeight", width: "180" },
      { name: "体积（方）", prop: "totalVolume", width: "180" },
      { name: "车型", prop: "carType", width: "80", align: "left" },
      { name: "车长", prop: "carCaptain", width: "80", align: "left" },
      { name: "运输方式", prop: "shipModeName", width: "80", align: "left" },
      { name: "运输模式", prop: "transportMode", width: "80", align: "left" },
      { name: "收入（元）", prop: "amountIncome", rmsData: "cost", width: "180" },
      { name: "异常收入（元）", prop: "amountAbnormalIncome", rmsData: "cost", width: "120" },
      { name: "成本（元）", prop: "amountCost", rmsData: "cost", width: "180" },
      { name: "异常成本（元）", prop: "amountAbnormalCost", rmsData: "cost", width: "120" },
      { name: "成本率（%）", prop: "amountCostRate", rmsData: "rate", width: "120" },
      { name: "利润（元）", prop: "profits", width: "180" },
      { name: "利润率（%）", prop: "profitsRate", rmsData: "rate", width: "120" },
      { name: "备注", prop: "desc", minWidth: "120", align: "left" }]
      break
    case 335:
      columns = [{ name: "发货方名称", prop: "name", align: "left", sortable: true },
      { name: "收入（元）", prop: "amountIncome", rmsData: "cost" },
      { name: "成本（元）", prop: "amountCost", rmsData: "cost" },
      { name: "利润（元）", prop: "profits", rmsData: "cost", sortable: true },
      { name: "运单数（单）", prop: "totalWaybill", rmsData: "total" },
      { name: "总重量（公斤）", prop: "totalWeight", rmsData: "total" },
      { name: "总体积（方）", prop: "totalVolume", rmsData: "total" }]
      break
    // 设备绑定率 无分页
    case 312:
      columns = [{ name: "年份", prop: "year", align: "left" },
      { name: "1月（元）", prop: "one" },
      { name: "2月（元）", prop: "two" },
      { name: "3月（元）", prop: "three" },
      { name: "4月（元）", prop: "four" },
      { name: "5月（元）", prop: "five" },
      { name: "6月（元）", prop: "six" },
      { name: "7月（元）", prop: "seven" },
      { name: "8月（元）", prop: "eight" },
      { name: "9月（元）", prop: "nine" },
      { name: "10月（元）", prop: "ten" },
      { name: "11月（元）", prop: "eleven" },
      { name: "12月（元）", prop: "twelve" }]
      break
    case 316:
    case 330:
      columns = [{ name: "1月", prop: "oneRate", bound: "oneBound", total: "one" },
      { name: "2月", prop: "twoRate", bound: "twoBound", total: "two" },
      { name: "3月", prop: "threeRate", bound: "threeBound", total: "three" },
      { name: "4月", prop: "fourRate", bound: "fourBound", total: "four" },
      { name: "5月", prop: "fiveRate", bound: "fiveBound", total: "five" },
      { name: "6月", prop: "sixRate", bound: "sixBound", total: "six" },
      { name: "7月", prop: "sevenRate", bound: "sevenBound", total: "seven" },
      { name: "8月", prop: "eightRate", bound: "eightBound", total: "eight" },
      { name: "9月", prop: "nineRate", bound: "nineBound", total: "nine" },
      { name: "10月", prop: "tenRate", bound: "tenBound", total: "ten" },
      { name: "11月", prop: "elevenRate", bound: "elevenBound", total: "eleven" },
      { name: "12月", prop: "twelveRate", bound: "twelveBound", total: "twelve" }]
      break
    case 323:
      columns = [{ name: "运输方式", prop: "expenseName", align: "left" },
      { name: "成本（元）", prop: "cost" },
      { name: "运单数（单）", prop: "totalWaybill" },
      { name: "总重量（公斤）", prop: "totalWeight" },
      { name: "总体积（方）", prop: "totalVolume" }]
      break
    case 324:
      columns = [{ name: "运输模式", prop: "expenseName", align: "left" },
      { name: "成本（元）", prop: "cost" },
      { name: "运单数（单）", prop: "totalWaybill" },
      { name: "总重量（公斤）", prop: "totalWeight" },
      { name: "总体积（方）", prop: "totalVolume" }]
      break
    case 325:
      columns = [{ name: "零担费（元）", prop: "feeDivide" },
      { name: "整车费（元）", prop: "feeWhole" },
      { name: "提货费（元）", prop: "feePick" },
      { name: "送货费（元）", prop: "feeDeliver" },
      { name: "装货费（元）", prop: "feeLoad" },
      { name: "卸货费（元）", prop: "feeUnload" },
      { name: "补充费用（元）", prop: "feeSupplement" },
      { name: "保险费（元）", prop: "feeInsure" },
      { name: "税费（元）", prop: "feeTax" },
      { name: "最低运费（元）", prop: "feeMin" }]
      break
    case 326:
      columns = [{ name: "年份", prop: "year", align: "left" },
      { name: "1月（元）", prop: "one" },
      { name: "2月（元）", prop: "two" },
      { name: "3月（元）", prop: "three" },
      { name: "4月（元）", prop: "four" },
      { name: "5月（元）", prop: "five" },
      { name: "6月（元）", prop: "six" },
      { name: "7月（元）", prop: "seven" },
      { name: "8月（元）", prop: "eight" },
      { name: "9月（元）", prop: "nine" },
      { name: "10月（元）", prop: "ten" },
      { name: "11月（元）", prop: "eleven" },
      { name: "12月（元）", prop: "twelve" }]
      break
    case 336:
      columns = [{ name: "月份", prop: "month", align: "left" },
      { name: "发货方运单（单数）", prop: "totalWaybill", props: "number" },
      { name: "收入（元）", prop: "amountIncome" },
      { name: "成本（元）", prop: "amountCost" },
      { name: "实际利润（元）", prop: "profits" },
      { name: "实际成本率（%）", prop: "amountCostRate" },
      { name: "实际利润率（%）", prop: "profitsRate" }]
      break
    case 357:
      columns = [{ name: "运单类型", prop: "orderTypeName", props: "string", width: "100", align: "left" },
      { name: "承运商", prop: "carrierName", props: "string", width: "150", align: "left", sortable: true },
      { name: "OEM/提货地", prop: "fromShortName", props: "string", width: "150", align: "left" },
      { name: "到货地", prop: "deliverShortName", props: "string", width: "", align: "left" },
      { name: "战区", prop: "zoneName", props: "string", width: "120", align: "left", sortable: true },
      { name: "发货单数", prop: "shipperNum", props: "number", width: "120" },
      { name: "总体积（方）", prop: "totalVolume", props: "volume", width: "" },
      { name: "总重量（吨）", prop: "totalWeight", props: "weight", width: "" },
      { name: "总数量（箱）", prop: "totalQuantity", props: "string", width: "120" },
      { name: "总运费（元）", prop: "fee", props: "string", width: "", sortable: true }]
      break
    case 358:
      columns = [{ name: "合同编号", prop: "contractNo", props: "string", width: "120", sortable: true },
      { name: "调拨单号", prop: "allotNumber", props: "string", width: "150" },
      { name: "OEM供应商", prop: "pickShortName", props: "string", width: "120" },
      { name: "战区", prop: "zoneName", props: "string", width: "" },
      { name: "运输模式", prop: "transportMode", props: "string", width: "" },
      { name: "发货日期", prop: "fromTime", props: "time", width: "200" },
      { name: "发货地址", prop: "fromAddress", props: "string", width: "200" },
      { name: "客户名称", prop: "customerName", props: "string", width: "150" },
      { name: "收货地址", prop: "toAddress", props: "string", width: "200" },
      { name: "承运商", prop: "carrierName", props: "string", width: "150" },
      { name: "到货日期", prop: "arrivalDate", props: "time", width: "200" },
      { name: "回单日期", prop: "receiptAt", props: "time", width: "200" },
      { name: "异常情况", prop: "exceptionSituationList", props: "string", width: "300" },
      { name: "备注", prop: "descs", props: "string", width: "300" },
      { name: "体积（方）", prop: "totalVolume", props: "volume", width: "100" },
      { name: "重量（吨）", prop: "totalWeight", props: "weight", width: "100" },
      { name: "数量", prop: "quantity", props: "number", width: "100" },
      { name: "异常数", prop: "exceptionQuantity", props: "number", width: "100", sortable: true }]
      break
    case 36188:
      columns = [{ name: "下单日期", prop: "createTime", props: "time", width: "150" },
      { name: "单号", prop: "pactCode", props: "string", width: "100" },
      { name: "订单业务类型", prop: "orderType", props: "string", width: "120" },
      { name: "承运方", prop: "carrierName", props: "string", width: "150" },
      { name: "提货地点", prop: "outGoods", props: "string", width: "180" },
      { name: "目的地", prop: "toCityName", props: "string", width: "150" },
      { name: "箱数", prop: "goodsCount", props: "number", width: "100" },
      { name: "体积", prop: "cubeCount", props: "unit", width: "100" },
      { name: "预约提货时间", prop: "planOutGoodsTime", props: "string", width: "160" },
      { name: "实际提货时间", prop: "realityOutGoodsTime", props: "string", width: "160" },
      { name: "提货时效", prop: "thAging", props: "string", width: "100" },
      { name: "不达标原因（提货）", prop: "thReason", props: "string", width: "200" },
      { name: "计划到达时间", prop: "planArriveTimeDetail", props: "string", width: "160" },
      { name: "要求到货顺延时间", prop: "planArriveTimeExport", props: "string", width: "160" },
      { name: "实际到达时间", prop: "realityArriveTime", props: "string", width: "160" },
      { name: "送货时效", prop: "shAging", props: "string", width: "150" },
      { name: "不达标原因（送货）", prop: "shReason", props: "string", width: "150" },
      { name: "要求回单日期", prop: "planReturnTime", props: "time", width: "150" },
      { name: "实际回单日期", prop: "realityReturnTime", props: "time", width: "150" },
      { name: "回单时效", prop: "hdAging", props: "string", width: "100" },
      { name: "货物丢失/漏发", prop: "hwLoseDesc", props: "string", width: "120" },
      { name: "回单丢失/补单", prop: "hdLoseDesc", props: "string", width: "120" },
      { name: "货物货损/拒收", prop: "hwRejectionDesc", props: "string", width: "120" }]
      break
  }
  return columns;
};

export function exceptionScreen (type) {
  let columns = [];
  switch (type) {
    case '1':
      columns = [{ name: "序号", prop: "index", props: "serial", align: "center", width: "100" },
      { name: "合同编号", prop: "contractNo", props: "string", align: "left", sortable: true },
      { name: "异常产品", prop: "goodsName", props: "string", align: "left" },
      { name: "异常数", prop: "exceptionQuantity", props: "number", sortable: true },
      { name: "异常原因", prop: "abnormalCause", props: "string", align: "left" },
      { name: "提货地（仓库/OEM）", prop: "fromShortName", props: "string", align: "left" },
      { name: "收货地（收货客户）", prop: "consigneeName", props: "string", align: "left" },
      { name: "承运商", prop: "carrierName", props: "string", align: "left" },
      { name: "发货日期", prop: "fromTime", props: "time", align: "left" }]
      break
    case '2':
      columns = [{ name: "承运商", prop: "carrierName", props: "string", align: "left", sortable: true },
      { name: "异常运单数", prop: "exceptionNum", props: "number", sortable: true },
      { name: "异常箱数", prop: "exceptionQuantity", props: "number", sortable: true },
      { name: "OEM直发", prop: "oEMExceptionNum", props: "oEMExceptionQuantity", align: "left", sortable: true },
      { name: "干线直发", prop: "gXZFExceptionNum", props: "gXZFExceptionQuantity", align: "left", sortable: true },
      { name: "经销商直发", prop: "jXSExceptionNum", props: "jXSExceptionQuantity", align: "left", sortable: true }]
      break
  }
  return columns;
};

export function checkingScreen (type) {
  let columns = [];
  switch (type) {
    case '1':
      columns = [{ name: "调拨单号", prop: "allotNumber", props: "string", width: "130", align: "left", sortable: true },
      { name: "销售单号", prop: "contractNo", props: "string", width: "130", align: "left", sortable: true },
      { name: "承运商", prop: "carrierName", props: "string", width: "120", align: "left" },
      { name: "CDC仓库", prop: "cdcWarehouse", props: "string", width: "100", align: "left" },
      { name: "发货日期", prop: "fromTime", props: "time", width: "120", align: "left" },
      { name: "目的地", prop: "toCity", props: "string", width: "120", align: "left" },
      { name: "客户名称", prop: "customerName", props: "string", width: "120", align: "left" },
      { name: "件数", prop: "quantity", props: "number", width: "100" },
      { name: "体积（方）", prop: "totalVolume", props: "unit", width: "160" },
      { name: "重量（吨）", prop: "totalWeight", props: "unit", width: "160" },
      { name: "单价（元）", prop: "unitPrice", props: "fee", width: "120" },
      { name: "运费（元）", prop: "divideFee", props: "fee", width: "120" },
      { name: "卸车费（元）", prop: "unloadFee", props: "fee", width: "120" },
      { name: "其他费用（元）", prop: "otherFee", props: "fee", width: "140" },
      { name: "总运费（元）", prop: "fee", width: "140", sortable: true }]
      break
    case '2':
      columns = [{ name: "合同编号", prop: "contractNo", props: "string", width: "130", align: "left", sortable: true },
      { name: "发货日期", prop: "fromTime", props: "time", width: "120", align: "left", sortable: true },
      { name: "承运商", prop: "carrierName", props: "string", width: "120", align: "left" },
      { name: "分公司仓库", prop: "divideWarehouse", props: "string", width: "120", align: "left" },
      { name: "CDC仓库", prop: "cdcWarehouse", props: "string", width: "120", align: "left" },
      { name: "调拨单号", prop: "allotNumber", props: "string", width: "120", align: "left" },
      { name: "数量", prop: "quantity", props: "number", width: "80" },
      { name: "体积（方）", prop: "totalVolume", props: "unit", width: "160" },
      { name: "重量（吨）", prop: "totalWeight", props: "unit", width: "160" },
      { name: "车型", prop: "carType", props: "string", width: "80", align: "left" },
      { name: "总运费（元）", prop: "fee", props: "fee", width: "130", sortable: true },
      { name: "备注", prop: "desc", props: "string", width: "120", align: "left" }]
      break
    case '3':
      columns = [{ name: "送货单号", prop: "contractNo", props: "string", width: "130", align: "left", sortable: true },
      { name: "OEM供应商", prop: "pickShortName", props: "string", width: "120", align: "left" },
      { name: "承运商", prop: "carrierName", props: "string", width: "120", align: "left" },
      { name: "到达仓库", prop: "deliverShortName", props: "string", width: "120", align: "left" },
      { name: "发货日期", prop: "fromTime", props: "time", width: "130", align: "left", sortable: true },
      { name: "发货数量（箱）", prop: "quantity", props: "number", width: "120" },
      { name: "重量（吨）", prop: "totalWeight", props: "unit", width: "160" },
      { name: "体积（方）", prop: "totalVolume", props: "unit", width: "160" },
      { name: "单价（元）", prop: "unitPrice", props: "fee", width: "100" },
      { name: "装卸费（元）", prop: "unloadFee", props: "fee", width: "120" },
      { name: "其他费用（元）", prop: "otherFee", props: "fee", width: "120" },
      { name: "运费（元）", prop: "divideFee", props: "fee", width: "120" },
      { name: "总运费（元）", prop: "fee", props: "fee", width: "130", sortable: true },
      { name: "战区", prop: "zoneName", props: "string", width: "100", align: "left" },
      { name: "备注", prop: "desc", props: "string", width: "120", align: "left" }]
      break
    case '4':
      columns = [{ name: "仓库", prop: "deliverShortName", props: "string", width: "120", align: "left" },
      { name: "总运费（元）", prop: "fee", props: "fee", width: "130px", sortable: true },
      { name: "总体积（方）", prop: "totalVolume", props: "unit", width: "130px", sortable: true },
      { name: "车型（5t）", prop: "five", props: "string", width: "100px", align: "left" },
      { name: "车型（8t）", prop: "eight", props: "string", width: "100px", align: "left" },
      { name: "车型（10t）", prop: "ten", props: "string", width: "100px", align: "left" },
      { name: "车型（16t）", prop: "sixteen", props: "string", width: "100px", align: "left" }]
      break
  }
  return columns;
};

export function derives (menuId) {
  let derive = {};
  switch (menuId) {
    case 311:
      derive = { name: "发货方报表-营业额报表", type: 101 }
      break
    case 312:
      derive = { name: "发货方报表-营业额月报表", type: 102 }
      break
    case 313:
      derive = { name: "发货方报表-应收结账报表", type: 103 }
      break
    case 314:
      derive = { name: "发货方报表-签收率报表", type: 104 }
      break
    case 367:
      derive = { name: "承运方货物状态-月统计", type: 77 }
      break
    case 368:
      derive = { name: "发货方货物状态-月统计", type: 79 }
      break
    case 315:
      derive = { name: "发货方报表-回单率报表", type: 105 }
      break
    case 316:
      derive = { name: "发货方报表-设备绑定率报表", type: 106 }
      break
    case 317:
      derive = { name: "发货方报表-签收时效报表", type: 107 }
      break
    case 318:
      derive = { name: "发货方报表-综合评分报表", type: 108 }
      break
    case 321:
      derive = { name: "承运方报表-承运方成本报表", type: 110 }
      break
    case 322:
      derive = { name: "承运方报表-收货方成本报表", type: 111 }
      break
    case 323:
      derive = { name: "承运方报表-运输方式成本", type: 112 }
      break
    case 324:
      derive = { name: "承运方报表-运输模式成本", type: 113 }
      break
    case 325:
      derive = { name: "承运方报表-费用类型成本报表", type: 114 }
      break
    case 326:
      derive = { name: "承运方报表-成本月报表", type: 115 }
      break
    case 327:
      derive = { name: "承运方报表-应付结账报表", type: 116 }
      break
    case 328:
      derive = { name: "承运方报表-签收率报表", type: 117 }
      break
    case 329:
      derive = { name: "承运方报表-回单率报表", type: 118 }
      break
    case 330:
      derive = { name: "承运方报表-设备绑定率报表", type: 119 }
      break
    case 331:
      derive = { name: "承运方报表-签收时效报表", type: 120 }
      break
    case 332:
      derive = { name: "承运方报表-综合评分报表", type: 121 }
      break
    case 333:
      derive = { name: "利润报表-含异常费用利润报表", type: 126 }
      break
    case 334:
      derive = { name: "利润报表-不含异常费用利润报表", type: 127 }
      break
    case 335:
      derive = { name: "利润报表-发货方利润报表", type: 99 }
      break
    case 336:
      derive = { name: "利润报表-实际利润月报表", type: 98 }
      break
    case 357:
      derive = { name: "脱普定制报表-运费汇总", type: 80 }
      break
    case 358:
      derive = { name: "脱普定制报表-回单登记", type: 81 }
      break
    case 36188:
      derive = { name: "脱普定制报表-Kpi明细表", type: 88 }
      break
  }
  return derive;
};

export function exceptionDerives (type) {
  let derive = {};
  switch (type) {
    case '1':
      derive = { name: "脱普定制报表-异常统计-送货异常", type: 82 }
      break
    case '2':
      derive = { name: "脱普定制报表-异常统计-签收异常", type: 83 }
      break
  }
  return derive;
};

export function checkingDerives (type) {
  let derive = {};
  switch (type) {
    case '1':
      derive = { name: "脱普定制报表-对账单-经销商对账单", type: 84 }
      break
    case '3':
      derive = { name: "脱普定制报表-对账单-OEM对账单", type: 87 }
      break
  }
  return derive;
};

export function checkDerives (type) {
  let derive = {};
  switch (type) {
    case 1:
      derive = { name: "脱普定制报表-对账单-干线对账单", type: 85 }
      break
    case 2:
      derive = { name: "脱普定制报表-对账单-干线对账单-仓库维度", type: 86 }
      break
  }
  return derive;
};

export function tableDataOlds (text) {
  let derive = [
    {
      work: "运输管理",
      subOption: "提货服务",
      description: "提货时效",
      standard: "100%",
      calculation: "当月提货车辆准时送达的车次/当月总提货车次*100%",
      proportion: "5%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货时效",
      description: "",
      standard: "",
      calculation: "当月准时送达的单据笔数/当月总发货的单据笔数*100%",
      proportion: "15%",
      fullScore: "15分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "回单时效",
      description: "",
      standard: "",
      calculation: "当月回达的回单笔数/当月总发货的单据笔数*100%",
      proportion: "15% ",
      fullScore: "15分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "货物丢失/漏发",
      standard: "0次",
      calculation: "整个月丢失、漏发次数为零",
      proportion: "25%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "回单丢失、补单",
      standard: "0次",
      calculation: "每个月均无回单丢失",
      proportion: "25%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "丢失/漏发/货损",
      standard: "0.05%",
      calculation: "货损箱数或拒收箱数在0.05％（含）以内",
      proportion: "25%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "退货处理进度",
      standard: "一个月",
      calculation: "当月所有退货发生后一个月内处理完",
      proportion: "25%",
      fullScore: "10分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "分公司产销评分",
      standard: "",
      calculation: "到货品质",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "分公司产销评分",
      standard: "",
      calculation: "到货异常",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "人员沟通",
      standard: "",
      calculation: "配合积极度",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "异常处理",
      standard: "配合积极",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "退货处理准确性",
      standard: "配合积极",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "信息跟踪及时性准确性",
      standard: "及时准确",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "信息跟踪表及时性准确性",
      standard: "及时准确",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "对口人变动",
      standard: "",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "总分",
      subOption: "A类",
      score: ""
    },
    {
      work: "总分",
      subOption: "B类",
      score: ""
    }
  ]
  return derive;
};

export function tableDataNews (text) {
  let derive = [
    {
      work: "运输管理",
      subOption: "提货服务",
      description: "提货时效",
      standard: "100%",
      calculation: "当月提货车辆准时送达的车次/当月总提货车次*100%",
      proportion: "5%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货时效",
      description: "经销商直发",
      standard: "",
      calculation: "当月准时送达的单据笔数/当月总发货的单据笔数*100%",
      proportion: "15%",
      fullScore: "15分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货时效",
      description: "干线直发",
      standard: "",
      calculation: "当月准时送达的单据笔数/当月总发货的单据笔数*100%",
      proportion: "15%",
      fullScore: "15分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "回单时效",
      description: "经销商直发",
      standard: "",
      calculation: "当月回达的回单笔数/当月总发货的单据笔数*100%",
      proportion: "15% ",
      fullScore: "15分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "回单时效",
      description: "干线直发",
      standard: "",
      calculation: "当月回达的回单笔数/当月总发货的单据笔数*100%",
      proportion: "15% ",
      fullScore: "15分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "货物丢失/漏发",
      standard: "0次",
      calculation: "整个月丢失、漏发次数为零",
      proportion: "25%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "回单丢失、补单",
      standard: "0次",
      calculation: "每个月均无回单丢失",
      proportion: "25%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "丢失/漏发/货损",
      standard: "0.05%",
      calculation: "货损箱数或拒收箱数在0.05％（含）以内",
      proportion: "25%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "送货误差",
      description: "退货处理进度",
      standard: "一个月",
      calculation: "当月所有退货发生后一个月内处理完",
      proportion: "25%",
      fullScore: "10分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "分公司产销评分",
      standard: "",
      calculation: "到货品质",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "分公司产销评分",
      standard: "",
      calculation: "到货异常",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "人员沟通",
      standard: "",
      calculation: "配合积极度",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "异常处理",
      standard: "配合积极",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "退货处理准确性",
      standard: "配合积极",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "信息跟踪及时性准确性",
      standard: "及时准确",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "信息跟踪表及时性准确性",
      standard: "及时准确",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "运输管理",
      subOption: "配合度",
      description: "对口人变动",
      standard: "",
      calculation: "",
      proportion: "40%",
      fullScore: "5分",
      actual: "",
      score: ""
    },
    {
      work: "总分",
      subOption: "A类",
      score: ""
    },
    {
      work: "总分",
      subOption: "B类",
      score: ""
    }
  ]
  return derive;
}

// export function hwLoseNumber (val) {
// 	let value
// 	if (val == 0) {
// 		value = '100%'
// 	} else if (val == 1 || val == 2) {
// 		value = '80%'
// 	} else if (val == 3) {
// 		value = '60%'
// 	} else if (val == 4) {
// 		value = '40%'
// 	} else if (val > 4) {
// 		value = '20%'
// 	} else {
// 		value = ''
// 	}
// 	return value
// }

// export function hdLoseNumber (val) {
// 	let value
// 	if (val == 0) {
// 		value = '100%'
// 	} else if (val == 1 || val == 2) {
// 		value = '80%'
// 	} else if (val == 3 || val == 4) {
// 		value = '60%'
// 	} else if (val == 5 || val == 6) {
// 		value = '40%'
// 	} else if (val > 6) {
// 		value = '20%'
// 	} else {
// 		value = ''
// 	}
// 	return value
// }

// export function losePercentage (val) {
// 	let value
// 	if (val <=  0.05) {
// 		value = '100%'
// 	} else if (val > 0.05 && val <= 0.15) {
// 		value = '80%'
// 	} else if (val > 0.15 && val <= 0.25) {
// 		value = '60%'
// 	} else if (val > 0.25 && val <= 0.35) {
// 		value = '40%'
// 	} else if (val > 0.35) {
// 		value = '20%'
// 	} else {
// 		value = ''
// 	}
// 	return value
// }

export function multi (menuId, name, type) {
  let shipType
  let shipName
  switch (name) {
    case 'countPickTimeOutRate':
      shipType = Number(menuId + '1')
      shipName = '提货超时'
      break;
    case 'countDeliverTimeOutRate':
      shipType = Number(menuId + '2')
      shipName = '送货超时'
      break;
    case 'countSignTimeOutRate':
      shipType = Number(menuId + '3')
      shipName = '签收超时'
      break;
    case 'countExceptionRate':
      shipType = Number(menuId + '4')
      shipName = '货物异常'
      break;
    case 'countReceiptTimeoutRate':
      shipType = Number(menuId + '5')
      shipName = '回单超时'
      break;
  }
  return type==1?shipType:shipName
}